package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

@Data
@TableName("comments")
@Builder
public class Comment {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long userId;
    private String username;
    private String avatar;
    private Long objectId;
    /*
    * type = 1 为古诗评论,type = 2为动态评论
    * */
    private int type;
    private String content;
    private int likeCount;
    private Date createTime;
}
